package org.jeecg.qis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.qis.entity.QisMatdetailValue;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: qis-来料检测结果明细表
 * @Author: shaolong
 * @Date: 2022-10-09
 * @Version: V1.0
 */
public interface QisMatdetailValueMapper extends BaseMapper<QisMatdetailValue> {

    /**
     * 通过主表id删除子表数据
     *
     * @param mainId 主表id
     * @return boolean
     */
    public boolean deleteByMainId(@Param("mainId") String mainId);

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId 主表id
     * @return List<QisMatdetailValue>
     */
    public List<QisMatdetailValue> selectByMainId(@Param("mainId") String mainId);

}
